<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MPartecipation
 *
 * @author andrea
 */
class MPartecipations_vidwiz extends Model_vidwiz {
    
    public function __construct( ) {
        global $config;
        $this->tableName = $config['tables']['partecipations'];
        $this->installationFields = array(
                  array(
                      0 => 'id',
                      1 => 'int',
                      2 => 'NOT NULL AUTO_INCREMENT PRIMARY KEY'
                  ),
                  array(
                      0 => 'userid',
                      1 => 'int',
                      2 => 'NOT NULL'
                  ),
                  array(
                      0 => 'user_approved',
                      1 => 'BOOLEAN',
                      2 => 'NOT NULL'
                  ),
                  array(
                      0 => 'video_approved',
                      1 => 'BOOLEAN',
                      2 => 'NOT NULL'
                  ),
                  array(
                      0 => 'videoid',
                      1 => 'int',
                      2 => 'NOT NULL'
                  ),
                  array(
                      0 => 'contestid',
                      1 => 'int',
                      2 => 'NOT NULL'
                  ),
                  array(
                      0 => "placing",
                      1 => 'int',
                      2 => 'NOT NULL'
                  )
                );
    }
    
}

?>
